from paddleocr import PaddleOCR

class OCR:
    def __init__(self,):
        self.ocr = PaddleOCR(use_angle_cls=True, lang='ch', use_gpu=False)

    def ocr_image(self, image):
        result = self.ocr.ocr(image,cls=True)
        return result

if __name__ == '__main__':
    ocr = OCR()
    result = ocr.ocr_image('D:/Project/All_Project/Python/blct/imges/csimages/1.png')
    print(result)